/**
 * 
 */
package com.sc.softmgr.business.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.acc.softmgr.model.SysUserMenu;
import com.acc.softmgr.model.SysUserMenuExample;
import com.sc.softmgr.business.dao.SysUserMenuMapper;
import com.sc.softmgr.business.service.ISysUserMenuService;

/**
 * 
 * @content
 * 
 * @date 2017年5月12日
 * 
 * @author OprCalf
 * 
 */
@Service
public class SysUserMenuServiceImpl implements ISysUserMenuService {

	@Autowired
	private SysUserMenuMapper sysUserMenu;

	@Override
	public long countByExample(SysUserMenuExample example) {
		return sysUserMenu.countByExample(example);
	}

	@Override
	public int deleteByExample(SysUserMenuExample example) {
		return sysUserMenu.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return sysUserMenu.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(SysUserMenu record) {
		return sysUserMenu.insert(record);
	}

	@Override
	public int insertSelective(SysUserMenu record) {
		return sysUserMenu.insertSelective(record);
	}

	@Override
	public int insertList(List<SysUserMenu> records) {
		for (SysUserMenu record : records) {
			insert(record);
		}
		return 1;
	}

	@Override
	public List<SysUserMenu> selectByExample(SysUserMenuExample example) {
		return sysUserMenu.selectByExample(example);
	}

	@Override
	public SysUserMenu selectByPrimaryKey(Integer id) {
		return sysUserMenu.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(SysUserMenu record, SysUserMenuExample example) {
		return sysUserMenu.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SysUserMenu record, SysUserMenuExample example) {
		return sysUserMenu.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(SysUserMenu record) {
		return sysUserMenu.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(SysUserMenu record) {
		return sysUserMenu.updateByPrimaryKey(record);
	}

}
